package com.cs.contract.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * @Author：zrx
 * @Package：com.cs.cscontract.domain
 * @Project：Ruoyi
 * @name：CsContract
 * @Date：2024/11/18 15:45
 * @Filename：CsContract
 */
public class CsContract extends BaseEntity {
    private static final long serialVersionUID = 5044316228996544393L;
    @Excel(name = "合同ID")
    private Integer eid;
    @Excel(name = "供应商ID")
    private Integer hid;
    @Excel(name = "招标项目ID")
    private Integer sid;
    @Excel(name = "非招标项目ID")
    private Integer gid;
    @Excel(name = "合同编号")
    private String eHcode;
    @Excel(name = "合同名称")
    private String eHname;
    @Excel(name = "合同状态")
    private Integer eStatus;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交付日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date eDeliveryTime;
    @Excel(name = "合同管理状态")
    private Integer oHstatus;
    @Excel(name = "合同类型")
    private String eType;
    @Excel(name = "密级")
    private Integer eCon;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date eStartdate;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date eEnddate;
    @Excel(name = "合同金额")
    private BigDecimal eAmount;
    @Excel(name = "合同情况说明")
    private String eDescription;
    @Excel(name = "意见")
    private String eOpinion;
    @Excel(name = "合同影像")
    private String eImage;
    @Excel(name = "合同文件")
    private String eDocuments;
    @Excel(name = "是否作废")
    private Integer eCancel;
    private CsSupplier csSupplier;
    private List<CsInventory> csInventoryList;
    private List<CsPayment> csPaymentList;
    private CsSign csSign;
    private CsPubAttachments csPubAttachments;

    public Integer getEid() {
        return eid;
    }

    public void setEid(Integer eid) {
        this.eid = eid;
    }

    public Integer getHid() {
        return hid;
    }

    public void setHid(Integer hid) {
        this.hid = hid;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String geteHcode() {
        return eHcode;
    }

    public void seteHcode(String eHcode) {
        this.eHcode = eHcode;
    }

    public String geteHname() {
        return eHname;
    }

    public void seteHname(String eHname) {
        this.eHname = eHname;
    }

    public Integer geteStatus() {
        return eStatus;
    }

    public void seteStatus(Integer eStatus) {
        this.eStatus = eStatus;
    }

    public Date geteDeliveryTime() {
        return eDeliveryTime;
    }

    public void seteDeliveryTime(Date eDeliveryTime) {
        this.eDeliveryTime = eDeliveryTime;
    }

    public Integer getoHstatus() {
        return oHstatus;
    }

    public void setoHstatus(Integer oHstatus) {
        this.oHstatus = oHstatus;
    }

    public String geteType() {
        return eType;
    }

    public void seteType(String eType) {
        this.eType = eType;
    }

    public Integer geteCon() {
        return eCon;
    }

    public void seteCon(Integer eCon) {
        this.eCon = eCon;
    }

    public Date geteStartdate() {
        return eStartdate;
    }

    public void seteStartdate(Date eStartdate) {
        this.eStartdate = eStartdate;
    }

    public Date geteEnddate() {
        return eEnddate;
    }

    public void seteEnddate(Date eEnddate) {
        this.eEnddate = eEnddate;
    }

    public BigDecimal geteAmount() {
        return eAmount;
    }

    public void seteAmount(BigDecimal eAmount) {
        this.eAmount = eAmount;
    }

    public String geteDescription() {
        return eDescription;
    }

    public void seteDescription(String eDescription) {
        this.eDescription = eDescription;
    }

    public String geteOpinion() {
        return eOpinion;
    }

    public void seteOpinion(String eOpinion) {
        this.eOpinion = eOpinion;
    }

    public String geteImage() {
        return eImage;
    }

    public void seteImage(String eImage) {
        this.eImage = eImage;
    }

    public String geteDocuments() {
        return eDocuments;
    }

    public void seteDocuments(String eDocuments) {
        this.eDocuments = eDocuments;
    }

    public Integer geteCancel() {
        return eCancel;
    }

    public void seteCancel(Integer eCancel) {
        this.eCancel = eCancel;
    }

    public CsSupplier getCsSupplier() {
        return csSupplier;
    }

    public void setCsSupplier(CsSupplier csSupplier) {
        this.csSupplier = csSupplier;
    }

    public List<CsInventory> getCsInventoryList() {
        return csInventoryList;
    }

    public void setCsInventoryList(List<CsInventory> csInventoryList) {
        this.csInventoryList = csInventoryList;
    }

    public List<CsPayment> getCsPaymentList() {
        return csPaymentList;
    }

    public void setCsPaymentList(List<CsPayment> csPaymentList) {
        this.csPaymentList = csPaymentList;
    }

    public CsSign getCsSign() {
        return csSign;
    }

    public void setCsSign(CsSign csSign) {
        this.csSign = csSign;
    }

    public CsPubAttachments getCsPubAttachments() {
        return csPubAttachments;
    }

    public void setCsPubAttachments(CsPubAttachments csPubAttachments) {
        this.csPubAttachments = csPubAttachments;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("eid", eid)
                .append("hid", hid)
                .append("sid", sid)
                .append("gid", gid)
                .append("eHcode", eHcode)
                .append("eHname", eHname)
                .append("eStatus", eStatus)
                .append("eDeliveryTime", eDeliveryTime)
                .append("oHstatus", oHstatus)
                .append("eType", eType)
                .append("eCon", eCon)
                .append("eStartdate", eStartdate)
                .append("eEnddate", eEnddate)
                .append("eAmount", eAmount)
                .append("eDescription", eDescription)
                .append("eOpinion", eOpinion)
                .append("eImage", eImage)
                .append("eDocuments", eDocuments)
                .append("eCancel", eCancel)
                .append("csSupplier", csSupplier)
                .append("csInventoryList", csInventoryList)
                .append("csPaymentList", csPaymentList)
                .append("csSign", csSign)
                .append("csPubAttachments", csPubAttachments)
                .toString();
    }
}
